﻿@model KCMS.BusinessLogic.Models.Page

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

        <legend>Page</legend>
         <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
    
         <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </div>
    
        <div class="editor-label">
            @Html.LabelFor(model => model.Text)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Text, 25, 50, new { @class = "html-editor" })
            @Html.ValidationMessageFor(model => model.Text)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetaDescription)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.MetaDescription, 5, 50, null)
            @Html.ValidationMessageFor(model => model.MetaDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MetaKeys)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.MetaKeys,5, 50, null)
            @Html.ValidationMessageFor(model => model.MetaKeys)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfCreate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfCreate)
            @Html.ValidationMessageFor(model => model.DateOfCreate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOfChange)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfChange)
            @Html.ValidationMessageFor(model => model.DateOfChange)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Published)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Published)
            @Html.ValidationMessageFor(model => model.Published)
        </div>

       
        <div class="editor-label">
            @Html.LabelFor(model => model.Layout)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Layout)
            @Html.ValidationMessageFor(model => model.Layout)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Index)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Index)
            @Html.ValidationMessageFor(model => model.Index)
        </div>



        @Html.HiddenFor(model => model.Id)

       
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
